#!/usr/bin/env python
# -*-coding:utf-8-*-
import xconfig as C

class MongoDB():
    '''
    mongodb数据库基本配置,更多的配置需要时再陪
    '''
    #mongodb://[username:password@]host1[:port1][,host2[:port2],…[,hostN[:portN]]][/[database][?options]]
    #https://blog.csdn.net/qq_43029154/article/details/82429384
    MONGO_URI= "mongodb://webAdmin:web1234wert@%s:%s/userDB?authMechanism=%s"%(
                                                                            C.host,
                                                                            C.mongoDB_port,
                                                                            'SCRAM-SHA-1'
                                                                            )
    MONGO_HOST = C.host
    MONGO_PORT = C.mongoDB_port #MONGO默认端口

    MONGO_DBNAME ='userDB'
    MONGO_USERNAME ='webAdmin'
    MONGO_PASSWORD = 'web1234wert'
    

class Secret():
    SECRET_KEY = "sebrdntnrsthryhrthetyjetyj"